const courseLibrary = {
  path: 'course-library',
  name: 'course-library',
  redirect: '/admin/element-library/course-library/list',
  meta: { title: '课程元素库', type: 1 },
  component: () => import('@/layout/admin/public.vue'),
  children: [
    {
      path: 'list',
      name: 'course-list',
      meta: { type: 1 },
      component: () =>
        import('@/views/Admin/courseLibrary/courseList/index.vue'),
    },
    {
      path: 'manage',
      name: 'course-manage',
      redirect: '/admin/element-library/course-library/manage/info',
      meta: { title: '课程管理', type: 1, dataType: 1 },
      component: () =>
        import('@/views/Admin/courseLibrary/courseManage/index.vue'),
      children: [
        {
          path: 'info',
          name: 'course-info',
          meta: { title: '元素库信息', type: 1 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseInfo/index.vue'
            ),
        },
        {
          path: 'chapter',
          name: 'course-chapter',
          meta: { title: '资源管理', type: 1 },
          redirect: '/admin/element-library/course-library/manage/chapter/list',
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseChapter/index.vue'
            ),
          children: [
            {
              path: 'list',
              name: 'course-knowledge-list',
              meta: { type: 1 },
              component: () =>
                import(
                  '@/views/Admin/courseLibrary/courseManage/courseChapter/knowledgeList.vue'
                ),
            },
            {
              path: 'create',
              name: 'course-knowledge-create',
              meta: { title: '新增知识点', type: 1 },
              component: () =>
                import(
                  '@/views/Admin/courseLibrary/knowledge/knowledgeCreate/index.vue'
                ),
            },
            {
              path: 'knowledge',
              name: 'course-knowledge',
              redirect: '/admin/element-library/course-library/manage/chapter',
              meta: { title: '知识点管理', type: 1, dataType: 2 },
              component: () =>
                import('@/views/Admin/courseLibrary/knowledge/index.vue'),
              children: [
                {
                  path: 'setting',
                  name: 'course-knowledge-setting',
                  meta: { type: 1 },
                  component: () =>
                    import(
                      '@/views/Admin/courseLibrary/knowledge/knowledgeManage/index.vue'
                    ),
                },
              ],
            },
          ],
        },
        {
          path: 'team',
          name: 'course-team',
          meta: { title: '教师团队', type: 1 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseTeam/index.vue'
            ),
        },
        {
          path: 'strategy',
          name: 'course-strategy',
          meta: { title: '批注管理', type: 1 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseStrategy/index.vue'
            ),
        },
        {
          path: 'review',
          name: 'course-review',
          meta: { title: '评论管理', type: 1 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseReview/index.vue'
            ),
        },
        {
          path: 'data',
          name: 'course-data',
          meta: { title: '数据统计', type: 1 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseData/index.vue'
            ),
        },
        {
          path: 'update',
          name: 'course-update',
          meta: { title: '更新管理', type: 1 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseUpdate/index.vue'
            ),
        },
        {
          path: 'other',
          name: 'course-other',
          meta: { title: '审核流程', type: 1 },
          component: () =>
            import(
              '@/views/Admin/courseLibrary/courseManage/courseOther/index.vue'
            ),
        },
      ],
    },
  ],
}
export default courseLibrary
